package com.cykj.pos.service;

import com.cykj.common.core.domain.AjaxResult;
import com.cykj.pos.domain.SettlementRateTemplate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cykj.pos.domain.ToolCashbackTemplate;
import com.cykj.pos.domain.WithdrawalRateTemplate;

import java.math.BigDecimal;
import java.util.List;

/**
 * 结算模板Service接口
 *
 * @author weijianbo
 * @date 2025-01-20
 */
public interface ISettlementRateTemplateService extends IService<SettlementRateTemplate> {

    /**
     * 查询列表
     */
    List<SettlementRateTemplate> queryList(SettlementRateTemplate settlementRateTemplate);

    BigDecimal getSettlementCreditRateMinByMerchId(Long merchId);

    BigDecimal getSettlementDebitRateMinByMerchId(Long merchId);

    BigDecimal getSettlementDebitCapMinByMerchId(Long merchId);

    BigDecimal getSettlementCommissionMinByMerchId(Long merchId);

    BigDecimal getSettlementQrCodeRateMinMinByMerchId(Long merchId);

    BigDecimal getSettlementD0MinByMerchId(Long merchId);

    int checkIsThereSnByMerchId(Long merchId);

    List<SettlementRateTemplate> getSettlementRateTemplateByMerchId(Long merchId);

    AjaxResult getWithdrawalTemplateList(WithdrawalRateTemplate withdrawalRateTemplate);

    AjaxResult backWithdrawalTemplateDeatil(WithdrawalRateTemplate withdrawalRateTemplate);

    AjaxResult backToolCashbackTemplateList();

    AjaxResult backToolCashbackTemplateDetail(ToolCashbackTemplate toolCashbackTemplate);
}
